
package com.idealighter.game.games.tongbiniuniu.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.games.tongbiniuniu.manager.TongBiNiuNiuMgr;
import com.idealighter.game.games.tongbiniuniu.message.ReqExchangeGoldsMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;


@ReqMsgHandler(514103)
public class ReqExchangeGoldsHandler implements ReqMessageHandler {
  @Inject
  private TongBiNiuNiuMgr srnnMgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqExchangeGoldsMsg msg = (ReqExchangeGoldsMsg) message;
    srnnMgr.exchangeGold(player, msg.getChips());

    return null;
  }
}
